package com.itheima.zuoye.zuoye3;

import java.lang.reflect.Constructor;
import java.lang.reflect.InvocationTargetException;

public class Test {
    public static void main(String[] args) throws ClassNotFoundException, NoSuchMethodException, InvocationTargetException, InstantiationException, IllegalAccessException {
        Class<?> aClass = Class.forName("com.itheima.zuoye.zuoye3.Democlass");
        Constructor<?> declaredConstructor = aClass.getDeclaredConstructor();
        Democlass o = (Democlass) declaredConstructor.newInstance();
        o.run();


    }
}
